//
//  BLDanmuView.swift
//  BLLiveTelecast
//
//  Created by BigL055 on 16/6/26.
//  Copyright © 2016年 bigL.liveTelecast.com. All rights reserved.
//

import UIKit

class BLDanmuView: UIView {
    
    var topPlaceView : UIView?
    var midPlaceView : UIView?
    var bottomPlaceView : UIView?
    
    

    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
        
    }
    
    
    /// 设置占位View
    func setPlaceView() {
        topPlaceView = UIView()
        midPlaceView = UIView()
        bottomPlaceView = UIView()
        
        self.addSubview(topPlaceView!)
        self.addSubview(midPlaceView!)
        self.addSubview(bottomPlaceView!)
        
        topPlaceView?.snp_makeConstraints(closure: { (make) in
            make.top.right.left.equalToSuperview()
            make.height.equalToSuperview().multipliedBy(1/3)
        })
        
        midPlaceView?.snp_makeConstraints(closure: { (make) in
            make.right.left.equalToSuperview()
            make.height.equalToSuperview().multipliedBy(1/3)
            make.top.equalTo((topPlaceView?.snp_bottom)!)
        })
        
        bottomPlaceView?.snp_makeConstraints(closure: { (make) in
            make.right.left.equalToSuperview()
            make.height.equalToSuperview().multipliedBy(1/3)
            make.top.equalTo((midPlaceView?.snp_bottom)!)
        })
    }
    
    

}
